package com.chentf.structural.adapter.classadapter;

/**
 * 客户端：用户给手机充电
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("类适配器模式测试:");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter());
    }
}
